1. Some files use stat, mkfifo, mkdir etc. without including
sys/stat.h
2. Some programs link against libpthread without a -lpthread compile
option. The compile used to work if this library happened to be used
by one of the other libraries that was being linked against, but
Fedora 13 has stopped allowing this.
From: M A Young <m.a.young@durham.ac.uk>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a
endif
-LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm
+LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread
LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz
BLK-OBJS-y := block-aio.o
#include <sys/time.h>
#include <syslog.h>
#include <memshr.h>
+#include <sys/stat.h>
#include "blktaplib.h"
#include "blktapctrl.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
#include "tapdisk.h"
#include "tapaio.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <unistd.h>
+#include <sys/stat.h>
/* timeout for reads and writes in ms */
#define HEARTBEAT_MS 1000
#include <libgen.h>
#include <iconv.h>
#include <sys/mman.h>
+#include <sys/stat.h>
#include "libvhd.h"
#include "relative-path.h"
#include <unistd.h>
#include <fnmatch.h>
#include <libgen.h> /* for basename() */
+#include <sys/stat.h>
#include "list.h"
#include "libvhd.h"
LIBS := -L. -L.. -L../lib
LIBS += $(LDFLAGS_libxenctrl)
LIBS += $(LDFLAGS_libxenstore)
-LIBS += -lrt
+LIBS += -lrt -lpthread
OBJS := fs-xenbus.o fs-ops.o